package com.zhongli.devplatform.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 年别枚举
 * @author WuXiCheng
 * @version 1.0
 * @date 2020/7/25 15:06
 */
@Getter
public enum GradeTypeEnum implements EnumMessage {

    Little(0,"小学"),        // 上册

    Primary(1,"初中"),           // 下册

    Advanced(2,"高中");       //高中

    @EnumValue
    private int code;

    @JsonValue
    private String message;

    GradeTypeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }
}
